package com.example.tse.rbhttpservice.service.shopping.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.shopping.model.ShoppingGetForBuyConsignees;
//import com.rbyair.services.shopping.model.ShoppingGetForBuyDeliveries;
//import com.rbyair.services.shopping.model.ShoppingGetForBuyPayments;
//import com.rbyair.services.shopping.model.ShoppingGetForBuyCoupons;
//import com.rbyair.services.shopping.model.ShoppingGetForBuyGoods;
//import com.rbyair.services.shopping.model.ShoppingGetForBuyTotal;
//import com.rbyair.services.shopping.model.ShoppingGetForBuyRemind;
/**
* 获取购物车数据，用于下单页面（购买商品列表、收货地址、配送方式、支付方式、优惠券列表）
* @author wliu
* edit tse
*/
public class ShoppingGetForBuyResponse extends RudderResponse{

private List<ShoppingGetForBuyConsignees> consignees = new ArrayList<ShoppingGetForBuyConsignees>();


private List<ShoppingGetForBuyDeliveries> deliveries = new ArrayList<ShoppingGetForBuyDeliveries>();


private List<ShoppingGetForBuyPayments> payments = new ArrayList<ShoppingGetForBuyPayments>();


private List<ShoppingGetForBuyCoupons> coupons = new ArrayList<ShoppingGetForBuyCoupons>();


private List<ShoppingGetForBuyGoods> goods = new ArrayList<ShoppingGetForBuyGoods>();


private ShoppingGetForBuyTotal total = new ShoppingGetForBuyTotal();


private String md5CartInfo = "";


private ShoppingGetForBuyRemind remind = new ShoppingGetForBuyRemind();


/**
* @return consignees
*/
public List<ShoppingGetForBuyConsignees> getConsignees() {
return this.consignees;
}

/**
* @return consignees
*/
public void setConsignees(List<ShoppingGetForBuyConsignees> consignees) {
this.consignees = consignees;
}
/**
methodName    Consignees
type          List<ShoppingGetForBuyConsignees>
name          consignees
defaultType   new ArrayList<ShoppingGetForBuyConsignees>()
*/

/**
* @return deliveries
*/
public List<ShoppingGetForBuyDeliveries> getDeliveries() {
return this.deliveries;
}

/**
* @return deliveries
*/
public void setDeliveries(List<ShoppingGetForBuyDeliveries> deliveries) {
this.deliveries = deliveries;
}
/**
methodName    Deliveries
type          List<ShoppingGetForBuyDeliveries>
name          deliveries
defaultType   new ArrayList<ShoppingGetForBuyDeliveries>()
*/

/**
* @return payments
*/
public List<ShoppingGetForBuyPayments> getPayments() {
return this.payments;
}

/**
* @return payments
*/
public void setPayments(List<ShoppingGetForBuyPayments> payments) {
this.payments = payments;
}
/**
methodName    Payments
type          List<ShoppingGetForBuyPayments>
name          payments
defaultType   new ArrayList<ShoppingGetForBuyPayments>()
*/

/**
* @return coupons
*/
public List<ShoppingGetForBuyCoupons> getCoupons() {
return this.coupons;
}

/**
* @return coupons
*/
public void setCoupons(List<ShoppingGetForBuyCoupons> coupons) {
this.coupons = coupons;
}
/**
methodName    Coupons
type          List<ShoppingGetForBuyCoupons>
name          coupons
defaultType   new ArrayList<ShoppingGetForBuyCoupons>()
*/

/**
* @return goods
*/
public List<ShoppingGetForBuyGoods> getGoods() {
return this.goods;
}

/**
* @return goods
*/
public void setGoods(List<ShoppingGetForBuyGoods> goods) {
this.goods = goods;
}
/**
methodName    Goods
type          List<ShoppingGetForBuyGoods>
name          goods
defaultType   new ArrayList<ShoppingGetForBuyGoods>()
*/

/**
* @return total
*/
public ShoppingGetForBuyTotal getTotal() {
return this.total;
}

/**
* @return total
*/
public void setTotal(ShoppingGetForBuyTotal total) {
this.total = total;
}
/**
methodName    Total
type          ShoppingGetForBuyTotal
name          total
defaultType   new ShoppingGetForBuyTotal()
*/

/**
* @return md5CartInfo
*/
public String getMd5CartInfo() {
return this.md5CartInfo;
}

/**
* @return md5CartInfo
*/
public void setMd5CartInfo(String md5CartInfo) {
this.md5CartInfo = md5CartInfo;
}
/**
methodName    Md5CartInfo
type          String
name          md5CartInfo
defaultType   ""
*/

/**
* @return remind
*/
public ShoppingGetForBuyRemind getRemind() {
return this.remind;
}

/**
* @return remind
*/
public void setRemind(ShoppingGetForBuyRemind remind) {
this.remind = remind;
}
/**
methodName    Remind
type          ShoppingGetForBuyRemind
name          remind
defaultType   new ShoppingGetForBuyRemind()
*/

/**


    private static void filterFor(ShoppingGetForBuyConsigneesProvince shopping) {
        if (shopping.getRegionId() == null) {
            shopping.setRegionId("");
        }
        if (shopping.getRegionName() == null) {
            shopping.setRegionName("");
        }
    }

    private static void filterFor(ShoppingGetForBuyConsigneesCity shopping) {
        if (shopping.getRegionId() == null) {
            shopping.setRegionId("");
        }
        if (shopping.getRegionName() == null) {
            shopping.setRegionName("");
        }
    }

    private static void filterFor(ShoppingGetForBuyConsigneesDistrict shopping) {
        if (shopping.getRegionId() == null) {
            shopping.setRegionId("");
        }
        if (shopping.getRegionName() == null) {
            shopping.setRegionName("");
        }
    }

    private static void filterFor(ShoppingGetForBuyConsignees shopping) {
        if (shopping.getConsigneeId() == null) {
            shopping.setConsigneeId("");
        }
        if (shopping.getConsigneeName() == null) {
            shopping.setConsigneeName("");
        }
        if (shopping.getConsigneeTel() == null) {
            shopping.setConsigneeTel("");
        }
        if (shopping.getConsigneeCard() == null) {
            shopping.setConsigneeCard("");
        }
        if (shopping.getProvince() == null) {
            shopping.setProvince(new ShoppingGetForBuyConsigneesProvince());
        } else {
            filterFor(shopping.getProvince());
        }
        if (shopping.getCity() == null) {
            shopping.setCity(new ShoppingGetForBuyConsigneesCity());
        } else {
            filterFor(shopping.getCity());
        }
        if (shopping.getDistrict() == null) {
            shopping.setDistrict(new ShoppingGetForBuyConsigneesDistrict());
        } else {
            filterFor(shopping.getDistrict());
        }
        if (shopping.getAddress() == null) {
            shopping.setAddress("");
        }
        if (shopping.getIsDefault() == null) {
            shopping.setIsDefault("");
        }
    }

    private static void filterFor(ShoppingGetForBuyDeliveries shopping) {
        if (shopping.getDeliveryId() == null) {
            shopping.setDeliveryId("");
        }
        if (shopping.getName() == null) {
            shopping.setName("");
        }
    }

    private static void filterFor(ShoppingGetForBuyPayments shopping) {
        if (shopping.getPaymentId() == null) {
            shopping.setPaymentId("");
        }
        if (shopping.getName() == null) {
            shopping.setName("");
        }
    }

    private static void filterFor(ShoppingGetForBuyCoupons shopping) {
        if (shopping.getCouponId() == null) {
            shopping.setCouponId("");
        }
        if (shopping.getName() == null) {
            shopping.setName("");
        }
        if (shopping.getPrice() == null) {
            shopping.setPrice("");
        }
        if (shopping.getEndTime() == null) {
            shopping.setEndTime("");
        }
    }

    private static void filterFor(ShoppingGetForBuyGoodsGoods shopping) {
        if (shopping.getObjIdent() == null) {
            shopping.setObjIdent("");
        }
        if (shopping.getProductId() == null) {
            shopping.setProductId("");
        }
        if (shopping.getName() == null) {
            shopping.setName("");
        }
        if (shopping.getPrice() == null) {
            shopping.setPrice("");
        }
        if (shopping.getQuantity() == null) {
            shopping.setQuantity("");
        }
        if (shopping.getThumbnailPic() == null) {
            shopping.setThumbnailPic("");
        }
        if (shopping.getSpec() == null) {
            shopping.setSpec("");
        }
    }

    private static void filterFor(ShoppingGetForBuyGoods shopping) {
        if (shopping.getWareName() == null) {
            shopping.setWareName("");
        }
        if (shopping.getGoods() == null) {
            shopping.setGoods(new ArrayList<ShoppingGetForBuyGoodsGoods>());
        } else {
            for (ShoppingGetForBuyGoodsGoods item : shopping.getGoods()) {
                filterFor(item);
            }
        }
        if (shopping.getSubTax() == null) {
            shopping.setSubTax("");
        }
    }

    private static void filterFor(ShoppingGetForBuyTotal shopping) {
        if (shopping.getTotalPrice() == null) {
            shopping.setTotalPrice("");
        }
        if (shopping.getTotalTax() == null) {
            shopping.setTotalTax("");
        }
        if (shopping.getTotalFee() == null) {
            shopping.setTotalFee("");
        }
        if (shopping.getTotal() == null) {
            shopping.setTotal("");
        }
        if (shopping.getDiscount() == null) {
            shopping.setDiscount("");
        }
    }

    private static void filterFor(ShoppingGetForBuyRemind shopping) {
        if (shopping.getTitle() == null) {
            shopping.setTitle("");
        }
        if (shopping.getContent() == null) {
            shopping.setContent("");
        }
    }

    public static void filter(ShoppingGetForBuyResponse shopping) {
        if (shopping.getConsignees() == null) {
            shopping.setConsignees(new ArrayList<ShoppingGetForBuyConsignees>());
        } else {
            for (ShoppingGetForBuyConsignees item : shopping.getConsignees()) {
                filterFor(item);
            }
        }
        if (shopping.getDeliveries() == null) {
            shopping.setDeliveries(new ArrayList<ShoppingGetForBuyDeliveries>());
        } else {
            for (ShoppingGetForBuyDeliveries item : shopping.getDeliveries()) {
                filterFor(item);
            }
        }
        if (shopping.getPayments() == null) {
            shopping.setPayments(new ArrayList<ShoppingGetForBuyPayments>());
        } else {
            for (ShoppingGetForBuyPayments item : shopping.getPayments()) {
                filterFor(item);
            }
        }
        if (shopping.getCoupons() == null) {
            shopping.setCoupons(new ArrayList<ShoppingGetForBuyCoupons>());
        } else {
            for (ShoppingGetForBuyCoupons item : shopping.getCoupons()) {
                filterFor(item);
            }
        }
        if (shopping.getGoods() == null) {
            shopping.setGoods(new ArrayList<ShoppingGetForBuyGoods>());
        } else {
            for (ShoppingGetForBuyGoods item : shopping.getGoods()) {
                filterFor(item);
            }
        }
        if (shopping.getTotal() == null) {
            shopping.setTotal(new ShoppingGetForBuyTotal());
        } else {
            filterFor(shopping.getTotal());
        }
        if (shopping.getMd5CartInfo() == null) {
            shopping.setMd5CartInfo("");
        }
        if (shopping.getRemind() == null) {
            shopping.setRemind(new ShoppingGetForBuyRemind());
        } else {
            filterFor(shopping.getRemind());
        }
    }

*/

}
